package com.ita.controller;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ita.service.IUserService;

@Controller(value="userControllerITA")
@Scope
@RequestMapping("/userita")
public class UserControllerITA {

//	private IUserService service=new UserServiceImpl();
	private IUserService service;
	
	
	public IUserService getService() {
		return service;
	}


	@Resource
	public void setService(IUserService service) {
		this.service = service;
	}


//	@RequestMapping("/login")
//	public String login(String username,String password,HttpSession session){
//		User user=service.login(username, password);
//		if(user!=null){
//			user.setPassword("");
//			session.setAttribute("loginToken", user);
//			return "books";
//		}
//		else{
//			return "login";
//		}
//	}

}
